package com.backend.system.beans.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 用户分配角色请求体
 *
 * @author backend-manage
 */
@ApiModel
@Data
public class UserGrantRolesReq implements Serializable {
    @Serial
    private static final long serialVersionUID = -7289017843447825628L;

    /**
     * 用户id
     */
    @NotNull(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /**
     * 角色ID列表
     */
    @NotEmpty(message = "角色ID列表不能为空")
    @ApiModelProperty(value = "角色ID列表", required = true)
    private List<Long> roleIds;

    /**
     * 备注信息
     */
    @ApiModelProperty("备注信息")
    private String remark;
}
